package com.unhz.generator.pojo;

import java.util.Date;

/**
 * 物流表
 */
public class Logistics {
    /** 物流Id */
    private Long id;
    /** 交货订单Id */
    private Long deliveryId;
    /** 物流创建时间 */
    private Date createTime;
    /** 物流内容 */
    private String info;
    /** 是否有效:0.无效 1.有效 **/
    private byte valid;
    /** 订单对象 */
    private DeliveryOrder deliveryOrder;

    public DeliveryOrder getDeliveryOrder() {
        return deliveryOrder;
    }

    public void setDeliveryOrder(DeliveryOrder deliveryOrder) {
        this.deliveryOrder = deliveryOrder;
    }

    public Logistics(Long id, Long deliveryId, Date createTime, String info,byte valid) {
        this.id = id;
        this.deliveryId = deliveryId;
        this.createTime = createTime;
        this.info = info;
        this.valid = valid;
    }

    public Logistics() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(Long deliveryId) {
        this.deliveryId = deliveryId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info == null ? null : info.trim();
    }

    public byte getValid() {
        return valid;
    }

    public void setValid(byte valid) {
        this.valid = valid;
    }
}